<?php
session_start ();
$path = dirname ( __FILE__ );

require_once ($path . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'functions.php');
require_once ($path . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'SysConfig.php');

$import = Sysconfig::getImportFiles ();

foreach ( $import as $dir ) {
	require_dir ( $dir );
}

if (! isset ( $_SESSION ['userinfo'] )) {
	$userinfo = array ('type' => UserBean::$_GUEST, 'name' => '游客', 'username' => '' ); 
	$_SESSION ['userinfo'] = $userinfo;
}

$fc = FrontController::getInstance ();
$fc->route ();


